package com.somsoft.handjc.activity;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import org.json.JSONArray;

import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
import android.widget.GridView;
import android.widget.Toast;

import com.somsoft.handjc.util.XzzfDataUtil;

@SuppressWarnings("all")
public class IndexActivity extends BaseGridViewActivity {
	
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.gridview);
		GridView gridview = (GridView) findViewById(R.id.gridview);
		Integer[] pics = { };
		String[] titles = {"审批系统","行政执法","公共资源","重大项目","系统设置"};
		super.createGridView(gridview,pics,titles);
	}


	/**
	 * arg0,// The AdapterView where the click happened
	 * arg1,// The view within the AdapterView that was clicked
	 * arg2,// The position of the view in the adapter
	 * arg3// The row id of the item that was clicked
	 */
	@Override
	public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {
		HashMap<String, Object> item = (HashMap<String, Object>) arg0.getItemAtPosition(arg2);
//	 显示所选Item的ItemText
	setTitle((String) item.get("ItemText"));
		
	}
}